<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>MVVM</title>
  </head>

  <body>
    <div id="app">
      <!-- 双向数据绑定 靠的是表单 -->
      <input type="text" v-model="message" />
      <div>{{message}}</div>
    </div>
    <script src="./js/Dep.js"></script>
    <script src="./js/watcher.js"></script>
    <script src="./js/observer.js"></script>
    <script src="./js/compile/CompileUtil.js"></script>
    <script src="./js/compile/compile.js"></script>
    <script src="./js/MVVM.js"></script>
    <script>
      let vm = new MVVM({
        el: "#app",
        data: {
          message: "hello world!",
        },
      });
    </script>
  </body>
</html>
